package com.xiaoye.qbproject.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoye.qbproject.domain.BlbcTroops;
import com.xiaoye.qbproject.vo.TroopsImportVo;
import com.xiaoye.qbproject.vo.TroopsV2ImportVo;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author Administrator
 * @description 针对表【BLBC_TROOPS(兵力编程编组)】的数据库操作Service
 * @createDate 2024-12-30 11:15:00
 */
public interface BlbcTroopsService extends IService<BlbcTroops> {

    /**
     * @param list
     * @description: 构建树形结构
     * @author: ChenYao
     * @return: java.util.List<com.xiaoye.qbproject.domain.BlbcTroops>
     * @ceateDate: 2024-12-30 11:50
     */

    List<BlbcTroops> buildTree(List<BlbcTroops> list);

    /**
     * @param blbcTroops
     * @description: 导入兵力编程编组数据
     * @author: ChenYao
     * @return: void
     * @ceateDate: 2025-01-01 13:52
     */

    void importTroops(List<TroopsImportVo> blbcTroops);

    void delCache();

    /**
     * @param countryId
     * @param response
     * @description: 导出兵力编程编组数据
     * @author: ChenYao
     * @return: void
     * @ceateDate: 2025-01-03 16:57
     */

    void exportOwl(String countryId, HttpServletResponse response);


    void saveTroopsV2(List<TroopsV2ImportVo> troopsV2ImportVos, String countryName);

    List<BlbcTroops> tree();

}
